package com.yunxi.service.dubboService.impl.otd;

import com.yunxi.core.web.ApiResult;
import com.yunxi.otd.pojo.OtdNodeConfigEditVO;
import com.yunxi.otd.service.OtdNodeConfigDubboService;
import com.yunxi.service.localService.otd.OtdNodeConfigService;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * <p>
 * OTD节点设置 服务实现类
 * </p>
 *
 * @author XUQI
 * @since 2019-08-22
 */
public class OtdNodeConfigDubboServiceImpl implements OtdNodeConfigDubboService {

    @Autowired
    @Qualifier(value = "otdNodeConfigServiceImpl")
    OtdNodeConfigService otdNodeConfigService;

    /**
     *  查询所有节点
     * @return ApiResult
     */
    @Override
    public ApiResult queryAllNode(Map<String, Object> map) {
        return otdNodeConfigService.queryAllNode(map);
    }

    /**
     * 设置时长
     * @param editVO  editVO
     * @return ApiResult
     */
    @Override
    public ApiResult update(OtdNodeConfigEditVO editVO) {
        return otdNodeConfigService.update(editVO);
    }
}
